﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cus.ascx.cs" Inherits="ZF.WS.service.btc.cus" %>
<link href="/css/validator.css" rel="stylesheet" type="text/css" />

<script src="/js/formValidator.js" type="text/javascript" language="javascript"></script>

<script src="/js/formValidatorRegex.js" type="text/javascript" language="javascript"></script>

<script src="/js/jqPlugins/onlypressnum.js" type="text/javascript" language="javascript"></script>
<%@ Register src="/UserControls/AirHtml.ascx" tagname="AirHtml" tagprefix="uc1" %>
<script>

    $(function() {
        $.formValidator.initConfig({ formid: document.forms[0].id, onerror: function(msg) { alert(msg) } });
        $(".tbTitle").formValidator({ tipid: "tbTitleTip", onshow: " ", onfocus: " ", oncorrect: " ", onempty: " " })
    .inputValidator({ min: 1, onerror: "不能为空" });
        $(".tbContact").formValidator({ tipid: "tbContactTip", onshow: "(如王先生)", onfocus: "(如王先生)", oncorrect: " ", onempty: "(如王先生)" })
    .inputValidator({ min: 1, onerror: "输入错误：必须输入联系人" });
        $(".tbTel").formValidator({ tipid: "tbTelTip", onshow: "( 固话号码或手机号码，如果有多个用“，”分隔)", onfocus: "( 固话号码或手机号码，如果有多个用“，”分隔)", oncorrect: " ", onempty: "(  固话号码或手机号码，如果有多个用“，”分隔)" })
    .inputValidator({ min: 1, onerror: "输入错误：请至少输入一个联系电话" });
        $(".tbEmail").formValidator({ tipid: "tbEmailTip", onshow: "为了便于我们联系您，请输入您的邮箱地址.如:abc@163.com", onfocus: "为了便于我们联系您，请输入您的邮箱地址.如:abc@163.com", oncorrect: "", onempty: "为了便于我们联系您，请输入您的邮箱地址.如:abc@163.com" })
            .functionValidator({ fun: function(value) {
                var reg = new RegExp("^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$");

                if (value != "" && !reg.test(value))
                    return "输入格式错误";
                else
                    return true;
            }
            });
        $(".tbVCode").formValidator({ tipid: "tbVCodeTip", onshow: " ", onfocus: " ", oncorrect: "", onempty: " " })
    .inputValidator({ min: 1, onerror: "请输入验证码" });
    });
    
    
</script>

<p class="t">
    联系我们</p>
<div class="pl5_">

 
<uc1:AirHtml ID="AirHtml1" runat="server"  AutoHeight="true"     Style="width:  100%; height: 10px"  Config=" frameborder='no' border='0' marginwidth='0'   marginheight='0' allowtransparency='yes'" />

<%--
    <p>
        尊敬的客户：</p>
    <p>
        非常感谢您对我们的关心和支持，如果您对公司的服务有什么疑问或意见，请与我们联系，将有专门人员解决您的问题。<br />
        我们非常感谢您的信任与直言不讳,这将激励和鞭策我们在提供优质服务方面更加不懈努力。
    </p>--%>
</div>
<div> 
    <table class="service" cellpadding="1" cellspacing="1">
        <tr>
            <th colspan="2">
                <span class="fl_">给我们留言</span>
                <%-- <img src="/image/zxzx.gif" class="vam_  mt8_  fr_  mr10_ cp_"  onclick="_openzxzc('按揭贷款');"    /> --%>
            </th>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_">*</span>姓名：
            </td>
            <td class="r">
                <div class="c">
                    <zf:TextBox runat="server" ID="tbContact" class="stxt"></zf:TextBox><span class="zx_"
                        id="tbContactTip"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_">*</span>联系电话：
            </td>
            <td class="r">
                <div class="c">
                    <zf:TextBox runat="server" ID="tbTel" class="txt"></zf:TextBox>
                    <span class="zx_" id="tbTelTip"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_"></span>E-mail：
            </td>
            <td class="r">
                <div class="c">
                    <zf:TextBox runat="server" ID="tbEmail" class="txt"></zf:TextBox>
                    <span class="zx_" id="tbEmailTip"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_">*</span>留言类型：
            </td>
            <td class="r">
                <div class="c">
                    <zf:DropDownList runat="server" ID="ddlType">
                        <asp:ListItem Text="请选择" Value="" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="咨询" Value="咨询"></asp:ListItem>
                        <asp:ListItem Text="建议" Value="建议"></asp:ListItem>
                        <asp:ListItem Text="表扬" Value="表扬"></asp:ListItem>
                        <asp:ListItem Text="意见" Value="意见"></asp:ListItem>
                    </zf:DropDownList>
                </div>
            </td>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_">*</span>留言主题：
            </td>
            <td class="r">
                <div class="c">
                    <zf:TextBox runat="server" ID="tbTitle" class="ltxt"></zf:TextBox>
                    <span class="zx_" id="tbTitleTip"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_"></span>留言内容：
            </td>
            <td class="r">
                <div class="c">
                    <zf:TextBox runat="server" ID="tbContent" TextMode="MultiLine" class="mstxt"></zf:TextBox>
                    <span class="zx_" id="Span2"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td class="l">
                <span class=" xh_">*</span>验证码：
            </td>
            <td class="r">
                <div class="c">
                    <zf:TextBox runat="server" ID="tbVCode" class="sstxt"></zf:TextBox><img src="/ValidatePage.aspx"
                        style="cursor: pointer" class='vcodeimg' onclick="refreshValidateCodeImage(this);" />
                    <span class="zx_" id="tbVCodeTip"></span>
                </div>
            </td>
        </tr>
        <tr class="b">
            <td colspan="2">
                <zf:Button ID="btAdd" class="linkbtn addSubmit" OnClick="AddSubmit" runat="server"
                    Text=" 提 交 "></zf:Button>
                <input type="button" class="linkbtn" value=" 取 消 " onclick="GoBack();" />
            </td>
        </tr>
       <%-- <tr>
            <td colspan="2">
                <div class="fw_  f14_   pl10_  ">
                    地址:广州市机场路乐陶街42号 &nbsp;&nbsp;&nbsp;&nbsp;邮编:510405<br />
                    电话:020-86340822 &nbsp;&nbsp;&nbsp;&nbsp;传真:020-86347150<br />
                    E-mail:DXB2301@163.com<br />
                </div>
            </td>
        </tr>--%>
    </table>
</div>
